<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>AutoIt v2 Compatibility</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>AutoIt v2 Compatibility</h1>
<p>AutoHotkey v1.1.09 and later <strong>do not support</strong> AutoIt v2 (.aut) scripts. Older versions of AutoHotkey supported AutoIt v2 scripts by changing the default settings and behaviour of some commands. This page contains information which has been removed from other pages in the documentation.</p>

<p><strong>The following only applies to .aut files, and only on v1.1.08.01 or earlier.</strong></p>
<table class="info">
  <tr><td><a href="../commands/_AllowSameLineComments.htm">#AllowSameLineComments</a></td><td>By default, comments are not allowed on the same line as a command.</td></tr>
  <tr><td>A_ScriptDir</td><td>A final backslash is included.</td></tr>
  <tr><td>DetectHiddenText</td><td>Defaults to Off.</td></tr>
  <tr><td>#EscapeChar</td><td>Defaults to backslash (\).</td></tr>
  <tr><td>FileCopy</td><td>ErrorLevel is set to 1 if any of the files could not be copied.</td></tr>
  <tr><td>IniDelete</td><td>ErrorLevel is not changed.</td></tr>
  <tr><td>IniRead</td><td>The <em>Default</em> parameter is not supported; the string ERROR will always be stored in <em>OutputVar</em> if there was a problem reading the value.</td></tr>
  <tr><td>IniWrite</td><td>ErrorLevel is not changed.</td></tr>
  <tr><td>InputBox</td><td>If the user presses the CANCEL button, <em>OutputVar</em> is set to be blank. <a href="../misc/ErrorLevel.htm">ErrorLevel</a> is not changed unless the dialog times out.</td></tr>
  <tr><td>SetBatchLines</td><td>Defaults to 1, which causes the script to sleep after every line.</td></tr>
  <tr><td>SetKeyDelay</td><td>The default <em>Delay</em> for the traditional SendEvent mode is 20.</td></tr>
  <tr><td>Send</td><td>The character <code>#</code> is ignored.</td></tr>
  <tr><td>SplashTextOn</td><td><em>Height</em> includes the window's title bar.</td></tr>
</table>

<h2>Escape Char Conversion</h2>
<p>Running a script file with the extension <code>.aut.ahk</code> on AutoHotkey v1.1.08.01 or earlier does not execute the script; it instead converts the script from the AutoIt v2 default escape character (backslash) to the AutoHotkey default (backtick).</p>

<h2>Obsolete Commands</h2>
<p>The following commands were supported by automatically translating them to the corresponding AutoHotkey commands (and this was previously undocumented): LeftClick, LeftClickDrag, RightClick, RightClickDrag, HideAutoItWin, Repeat, EndRepeat. This automatic translation has been removed in v1.1.09.</p>

</body>
</html>
